package sctu.edu.java.year2016.team04.luoxinghua.lianxi.Return;

import java.util.Scanner;

/**
 * Created by 落叶的思恋 on 2016/5/30.
 */
public  class Abstracta {

    float aa,bb,radius;
    String figure;
    public void scanf() {
        Scanner scan=new Scanner(System.in);
        figure=scan.nextLine();
        if (figure.equals("长方形")) {
            System.out.println("please input the length and width");
            aa = scan.nextFloat();
            bb = scan.nextFloat();
        }
        if (figure.equals("圆")) {
            System.out.println("please enter the radius ");
            radius=scan.nextFloat();
        }
        else
            System.out.println("you input worry");

    }
    public   void Area(){

    }
}
